package com.medical.data.service;

import com.medical.data.domain.FormTemplate;
import com.medical.data.domain.TemplateForm;
import com.baomidou.mybatisplus.extension.service.IService;
import com.medical.data.vo.AllFormVo;

import javax.validation.constraints.NotBlank;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cj
 * @since 2024-02-17
 */
public interface TemplateFormService extends IService<TemplateForm> {

    List<String> getTemplateForm(AllFormVo allFormVo);

    Map<String,List<FormTemplate>> getForms(List<String> nodeIds);


    void getFormByFormId(String formId, @NotBlank String nodeId);

    void deleteNodeById(String nodeId);

    void deleteFormById(String formId);

    String getNodeIdByFormId(String formId);

    String getProjectIdByNodeId(String nodeId);
}
